package com.ruoyi.scale.document;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.scale.document.base.BaseDocumentDomain;
import com.ruoyi.scale.document.refs.ScaleResult;
import com.ruoyi.scale.document.refs.ScaleAnswer;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;


@Getter
@Setter
@Document("scaleLog")
public class ScaleLog extends BaseDocumentDomain {
    /**
     * 量表配置id
     **/
    @NotNull(message = "量表id不能为空")
    private String scaleId;
    /**
     * 量表名称
     */
    private String scaleName;
    //测评集合id
    private Long testGroupId;
    //被测评人
   // @NotNull(message = "被测评人不能为空!")
    private Long testPersonId;
    //被测评人姓名
    private String testPersonName;
    //被测评人性别  1：男  2：女
    private Integer sex;
    //被测评人月龄
    private Integer monthAge;
    //被测评人生日
    private Date birthday;
    //end
    //测评人id
    private Long userId;
    //测评人名
    private Long userName;
    //测评人签名
    private String base64ignPic;
    /**
     * 答案列表
     **/
    private List<ScaleAnswer> answerList;
    /**
     * 输入表单数据
     */
    private Object formData;
    /**
     * 测评结果
     */
    private ScaleResult result;
    /**
     * 结果
     */
    private Object extResult;
    /**
     * 打印时间
     ***/
    private Date printTime;
    /**
     * 展示组件
     */
    private String reportShowComponent;
    //回答时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date answerTime;

    private String remark;
}
